package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 会员远程调用服务
 *
 * @title: MemberFeignService
 * @Author syh
 * @Date: 2022/7/13 10:02
 * @Version 1.0
 */

@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 根据会员id获取收货地址
     *
     * @param id
     * @return
     */
    @RequestMapping("/member/memberreceiveaddress/info/{id}")
    R addrInfo(@PathVariable("id") Long id);
}
